# -*- coding: utf-8 -*-
# @Time    : 2021/4/15 0015 16:33
# @Author  : 蒋才果
# @Email   : 1476235300@qq.com
# @File    : 列表去重并排序.py
# @Software: PyCharm
# ls = [1,2,2,5,2,1,3,5,4]
# ls2 = []
# ls.sort()
# for i in ls:
#     if i not in ls2:
#         ls2.append(i)
# print(ls2)